import request from '@/utils/request.js'

import { commonApi } from '@/utils/apiUtils.js'


export const createCodeService = () => request.get(commonApi('/code'))

export const checkCodeService = (code) =>
  request.get(commonApi('/check-code?code=' + code))

export const getECodeService = (data) => request.post(commonApi('/email-code'), data)

export const checkECodeService = (data) => request.post(commonApi('/check-eCode'), data)

